body {
  overflow: hidden;
  padding: 0;
  margin: 0;
}
body, input, select, button {
  font-family: Tahoma;
  font-size: 9pt;
}
button:disabled {
  cursor: default !important;
}
#tooltip {
    position: absolute;
    z-index: 999;
    border: 1px solid #000;
    background-color: #ffff99;
    padding: 1px 6px;
    display: none;
    white-space: nowrap;
}
#panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  margin-top: 20px;
  padding: 0 10px 0 10px;
  background: transparent url(../img/bg_middle.png) 0 0 repeat-y;
}
#panel::after {
  background: transparent url(../img/bg_bottom.png) 0 0 no-repeat;
  display: block;
  content: " ";
  margin-bottom: -8px;
  margin-left: -10px;
  width: 200px;
  height: 8px;
}
#panel-buttons {
  margin: -20px -10px -23px -10px;
  padding: 8px 8px 0 0;
  height: 53px;
  text-align: right;
  background: transparent url(../img/bg_top.png) 0 0 no-repeat;
}
#panel-buttons button {
  width: 18px;
  height: 18px;
  border: none;
  cursor: pointer;
}
#panel-buttons button:hover {
  background-position: 0 -18px !important;
}
#panel-buttons button:active {
  background-position: 0 -36px !important;
}
#panel-buttons button:disabled {
  background-position: 0 -54px !important;
}
#panel-buttons #help {
  background-image: url(../img/buttons-help.png);
}
#panel-buttons #config {
  background-image: url(../img/buttons-config.png);
}
#panel-buttons #close {
  background-image: url(../img/buttons-close.png);
}

#panel-config {
  position: absolute;
  z-index: 9999999;
  top: 18px;
  left: 10px;
  /* the front gets hidden and the back floats on top
  this ensures that the height of the panel stays constant */
  display: none;
}
#panel-devices {
  margin-top: -6px;
  padding-bottom: 3px;
}
#panel-devices-none {
  padding: 2px 0 6px 0;
  margin: 0 0 6px 0;
}
#panel-devices-restore {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: navy;
  text-decoration: underline;
}
#panel-devices > button {
  width: 184px;
  height: 24px;
  margin: 1px 0 1px -2px;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
  padding-left: 24px; /* note, padding for buttons doesn't follow normal box-model */
  background: transparent url(../img/buttons-devices.png) 0 0 no-repeat;
  border: 0;
  vertical-align: middle;
  overflow: hidden;
}
#panel-devices > button:hover  {background-position: 0 50%}
#panel-devices > button.chosen {background-position: 0 100%}

#panel-controls button {
  cursor: pointer;
  padding: 1px 4px;
}
/*
#panel-controls button span {
  display: none;
}
#panel-controls #device-new {
  background-image: url(../img/but-new.png)
}
#panel-controls #device-delete {
  background-image: url(../img/but-delete.png)
}
#panel-controls button:hover {
  background-position: 0 50%;
}
#panel-controls button:active {
  background-position: 0 100%;
}
#panel-controls button:disabled {
  opacity: 0.5;
  background-position: 0 0;
  cursor: default;
}
*/
#panel-status {
  display: none;
  color: #222;
  -apple-dashboard-region:dashboard-region(control rectangle);
  cursor: text;
}
#panel-status ul {
  padding: 0 0 0 18px;
  margin: 0;
}
#panel-status a {
  text-decoration: none;
}
#panel-status a:hover { color: red; }
#panel-status a:active{ color: green; }

#status-edit {
  float: right;
  padding: 1px 4px;
  cursor: pointer;
}
/*
#status-edit {
  margin-right: 2px;
}
#status-edit:hover, #status-delete:hover   { background-position: 0 50%; }
#status-edit:active, #status-delete:active { background-position: 0 100%; }
#status-edit {
  background-image: url(../img/but-edit.png);
}*/

.box {
  background-image: url(../img/box_middle.png);
  margin: 4px 0 7px -2px;
  width: 172px;
  padding: 6px 6px 6px 6px;
}
.box:before {
  background-image: url(../img/box_top.png);
  display: block;
  content: " ";
  margin-top: -12px;
  margin-left: -6px;
  width: 184px;
  height: 6px;
}
.box:after {
  background-image: url(../img/box_bottom.png);
  display: block;
  content: " ";
  margin-bottom: -12px;
  margin-left: -6px;
  width: 184px;
  height: 6px;
}
#panel-new-container #panel-custom {
  margin-top: 8px;
}
#panel-custom {
  display: none;
}
#panel-custom label {
  display: block;
}
#panel-custom span {
  display: inline-block;
  width: 70px;
  text-align: right;
}
#panel-custom select {
  width: 85px;
}
#panel-custom input[type="text"] {
  width: 80px;
}
#panel-custom input[type="text"].short {
  width: 30px;
}
#panel-custom input[type="text"].flash {
  font-weight: bold;
}
#panel-custom input[type="checkbox"] {
  vertical-align: middle;
}
#panel-custom button {
  font-size: 8pt;
  cursor: pointer;
}
#panel-custom label.check {
  padding-left: 73px;
}
#panel-config {
  display: none;
}
#panel-config label {
  display: block;
}
#config-version {
	margin-bottom: 8px;
	font-weight: bold;
	color: #444;
	font-size: 16px;
}
#config-version span {
	font-family: Georgia;
	font-size: 20px;
	color: #000;
	font-weight: normal;
}

body.config #panel-config {
  display: block;
}
#panel-main {
  min-height: 200px;
}
body.config #panel-main {
  visibility: hidden;
}

#info {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  margin: 58px 0 0 230px;
  background-image: url(../img/drawer.png);
  background-position: 0 bottom;
}
#info > div {
  margin-right: -5px;
  background-image: url(../img/drawer_right.png);
  background-position: right bottom;
  background-repeat: no-repeat;
}
#info-stats {
  padding: 5px 5px 10px 5px;
}
#info pre {
  margin-top: 6px;
  margin-bottom: 3px;
  padding: 3px 3px 3px 3px;
  overflow: auto;
  max-height: 50px;
  cursor: text;
  border-top: 1px solid #000;
  -apple-dashboard-region:dashboard-region(control rectangle);
  cursor: text;
}
#info-program {
  background-image: url(../img/startbar_task.png);
  border: none;
  height: 20px;
  margin: -2px 1px 0 1px;
}
#info-program.dockable {
  
}
#info-icon {
  margin-top: 2px;
  border: 1px solid #000;
  border-right: none;
  vertical-align: top;
}
#info-program span {
	display: inline-block;
	width: 110px;
	padding: 3px 0 0 2px;
  	color: #fff;
  	text-shadow: 1px 1px #000;
	white-space: nowrap;
	overflow: hidden;
}
#info-program button {
	width: 20px;
	height: 18px;
	margin-top: 2px;
	float: right;
	cursor: pointer;
	border: none;
	background: transparent url(../img/startbar_task_buttons.png) 0 2px no-repeat;
}
#info-program button#info-close  {background-position: -40px 0}
#info-program button#info-reload {background-position: -20px 0}
#info-program button#info-dock   {background-position: 0 0; display:none; }
#info-program.dockable button#info-dock { display: inline-block; }

#info-program button#info-close:hover  {background-position: -40px -18px}
#info-program button#info-reload:hover {background-position: -20px -18px}
#info-program button#info-dock:hover   {background-position: 0px -18px}

#info-program button#info-close:active  {background-position: -40px -36px}
#info-program button#info-reload:active {background-position: -20px -36px}
#info-program button#info-dock:active   {background-position: 0px -36px}

#device {
  position: absolute;
  top: 0;
  left: 200px;
  padding: 30px;
  display: none;
}

/* one of these styles are applied depending on the device chosen */
#device.screen {}
#device.handheld {}
#device.tv {}

#frame div {
  position: absolute;
  z-index: 2;
}
#frame-top-left {
  top: -30px;
  left: -30px;
  width: 30px;
  height: 30px;
}
#frame-top-mid {
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
}
#frame-top-right {
  top: -30px;
  right: -30px;
  width: 30px;
  height: 30px;
}
#frame-mid-left {
  top: 0;
  left: -30px;
  width: 30px;
  height: 100%;
}
#frame-mid-right {
  top: 0;
  right: -30px;
  width: 30px;
  height: 100%;
}
#frame-bot-left {
  bottom: -30px;
  left: -30px;
  width: 30px;
  height: 30px;
}
#frame-bot-mid {
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 30px;
}
#frame-bot-right {
  bottom: -30px;
  right: -30px;
  width: 30px;
  height: 30px;
}

/* Default frame */
#frame-top-left   {background: transparent url(../img/device_topleft.png) 0 0 no-repeat}
#frame-top-mid    {background: transparent url(../img/device_topcenter.png) 0 0 repeat-x}
#frame-top-right  {background: transparent url(../img/device_topright.png) 0 0 no-repeat}
#frame-mid-left   {background: transparent url(../img/device_middleleft.png) 0 0 repeat-y}
#frame-mid-right  {background: transparent url(../img/device_middleright.png) 0 0 repeat-y}
#frame-bot-left   {background: transparent url(../img/device_bottomleft.png) 0 0 no-repeat}
#frame-bot-mid    {background: transparent url(../img/device_bottomcenter.png) 50% 0 repeat-x}
#frame-bot-right  {background: transparent url(../img/device_bottomright.png) 0 0 no-repeat}

/* Mobile */
#device.handheld #frame-top-left   {background: transparent url(../img/mobile_topleft.png) 0 0 no-repeat}
#device.handheld #frame-top-mid    {background: transparent url(../img/mobile_topcenter.png) 50% 0 repeat-x}
#device.handheld #frame-top-right  {background: transparent url(../img/mobile_topright.png) 0 0 no-repeat}
#device.handheld #frame-mid-left   {background: transparent url(../img/mobile_middleleft.png) 0 0 repeat-y}
#device.handheld #frame-mid-right  {background: transparent url(../img/mobile_middleright.png) 0 0 repeat-y}
#device.handheld #frame-bot-left   {background: transparent url(../img/mobile_bottomleft.png) 0 0 no-repeat}
#device.handheld #frame-bot-mid    {background: transparent url(../img/mobile_bottomcenter.png) 50% 0 repeat-x}
#device.handheld #frame-bot-right  {background: transparent url(../img/mobile_bottomright.png) 0 0 no-repeat}


/* TV */
#device.tv #frame-top-left   {background: transparent url(../img/tv_topleft.png) 0 0 no-repeat}
#device.tv #frame-top-mid    {background: transparent url(../img/tv_topcenter.png) 0 0 repeat-x}
#device.tv #frame-top-right  {background: transparent url(../img/tv_topright.png) 0 0 no-repeat}
#device.tv #frame-mid-left   {background: transparent url(../img/tv_middleleft.png) 0 0 repeat-y}
#device.tv #frame-mid-right  {background: transparent url(../img/tv_middleright.png) 0 0 repeat-y}
#device.tv #frame-bot-left   {background: transparent url(../img/tv_bottomleft.png) 0 0 no-repeat}
#device.tv #frame-bot-mid    {background: transparent url(../img/tv_bottomcenter.png) 50% 0 repeat-x}
#device.tv #frame-bot-right  {background: transparent url(../img/tv_bottomright.png) 0 0 no-repeat}

#screen.widgetMinimised #frameObject {
	display: none;
}
#screen.widgetMinimised #info-program {
	cursor: pointer;
	background-position: 0 100%;
}
#screen.widgetMinimised #info-program:hover {
	background-position: 0 50%;
}
#screen.widgetMinimised #info-program.flashing {
	background-position: 0 50%;
}
#screen.widgetMinimised #scroll {
	display: none !important;
}

#notifier {
	display: none;
	position: absolute;
	bottom: 20px;
	right: 0;
	margin-bottom: -28px;
}
#notifier-text {
	width: 200px;
	height: 28px;
	line-height: 28px;
	font-size: 11px;
	border: 1px solid #C4BBA6;
	border-right: none;
	border-bottom: none;
	padding: 0 28px 0 30px;
	background-image: url(../img/widget-icon.png);
	background-repeat: no-repeat;
	background-position: 5px center;
	background-color: #FCF9F4;
	text-align: left;
	cursor: pointer;
}
#notifier-text:hover {
	background-color: #E0DEDA;
}
#notifier-text:active {
	border-color: #000;
}
#notifier-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 28px;
	height: 28px;
	border: none;
	background-color: transparent;
	background-image: url(../img/notifier-close3.png);
	background-repeat: no-repeat;
	background-position: 5px 5px;
	cursor: pointer;
}
#notifier-close:hover {
	background-position: 5px -28px;
}
#notifier-close:active {
	background-position: 5px -61px;
}
#bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #999 url(../img/startbar_bg.png) 0 0 repeat-x;
  height: 20px;
  padding: 0;
  display: none;
}

#fuzz {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/fuzz.jpg);
  display: none;
}

#screen {
  position: relative;
  background: #0cc url(../img/back.png) 50% 50% no-repeat;
}
#desktop {
  position: relative;
  width: 100%;
  height: 100%;
  -apple-dashboard-region:dashboard-region(control rectangle);
  overflow: hidden;
}
#desktop-icons {
  padding: 10px 0 0 5px;
}
#desktop.error #desktop-icons {
  display: none;
}
#desktop-icons button {
	cursor: pointer;
	width: 100px;
	height: 70px;
	border: none;
	background-color: transparent;
}
#desktop-icons button:hover { background-position: 0 50%; }
#desktop-icons button:active{ background-position: 0 100%;}

#icons-launchwidget {
	background-image: url(../img/icons-launchwidget.png);
}
#icons-shutdown {
	background-image: url(../img/icons-shutdown.png);
}
#desktop-error {
  margin: 10px 35px 0 10px;
  padding: 5px;
  background-image: url(../img/faintwhite.png);
  border: 1px dashed #444;
  display: none;
  max-width: 300px;
}
#desktop.error #desktop-error {
  display: block;
}
#desktop-error > div {
  display: none;
}
#desktop-error.index #desktop-error-index,
#desktop-error.script #desktop-error-script,
#desktop-error.config #desktop-error-config { display: block !important; }
#desktop-error h3 {
  margin: 0 0 0 0;
  padding: 0;
  font-size: 11pt;
  font-weight: bold;
}
#desktop-error.flash {
  border: 3px solid orange;
  padding: 3px;
}
#desktop-error p {
  margin: 5px 0 0 0;
  padding: 0;
}
#desktop-error code {
  font-family: Tahoma;
  font-weight: 700;
  font-style: normal;
  font-size: 8pt;
  padding: 1px 3px;
}
#desktop-error input {
  display: block;
  width: 100%;
  border: 1px dashed #993;
  padding: 2px;
  background-color: #ffd;
  overflow: auto;
  white-space: nowrap;
  font-family: monospace;
  margin: 8px 0 0 -25px;
}
#desktop-error-launch {
  margin-top: 5px;
  font-family: Tahoma;
  font-size: 1em;
  cursor: pointer;
  padding: 0 3px;
}
#desktop-colours {
	position: absolute;
	top: 0px;
	right: 8px;
	width: 16px;
}
#desktop-colours button {
	width: 16px;
	height: 16px;
	margin-top: 8px;
	cursor: pointer;
	border: 1px solid #333;
  background-image: url(../img/16grad.png);
  vertical-align: middle;
}
#desktop-colours button:hover {
  border-color: #000;
  outline: 1px solid #FFF;
}
#desktop-colours button:active {
	margin-top: 9px;
	margin-bottom: -1px;
}

#screen-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -apple-dashboard-region:dashboard-region(control rectangle);
  display: none;
}

#screen-blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/semitransparent.png);
  display: none;
}
#dialogue {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  margin-left: 100px;
  z-index: 99;
}
#dialogue form {
  position: absolute;
  left: 50%;
  margin-left: -155px;
  width: 310px;
  height: 170px;
  padding: 0;
  background-image: url(../img/dialogue.png);
  line-height: 150%;
}
#dialogue form div {
  position: absolute;
  top: 5px;
  left: 67px;
  width: 225px;
  padding: 5px 5px 0 8px;
  cursor: text;
}
#dialogue form div h4 {
  padding: 0;
  margin: 0 0 5px 0;
  width: 90%;
  font-size: 11pt;
  font-weight: 700;
}
#dialogue input[type="text"] {
  display: block;
  width: 205px;
  margin-top: 5px;
}
#dialogue fieldset {
  position: absolute;
  top: 134px;
  left: 0;
  width: 100%;
  text-align: center;
  border: none;
  padding: 0;  
}
#dialogue fieldset input {
  min-width: 70px;
  cursor: pointer;
  margin: 0 5px;
}

#frameObject {
  border: none;
  overflow: hidden;
  position: absolute;
  /* top and left are set by script */
}
#frameWrapper.showOutline {
  position: absolute;
  margin: -2px;
}
#frameWrapper.showOutline #frameObject {
  border: 2px dashed #fff;
}
#frameObject.docked, body.dialogue #frameObject {
  outline: none;
}
#dockBlocker {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 80px;
  display: none;
  border-left: 3px solid #000;
  border-bottom: 3px solid #000;
  cursor: pointer;
}